<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<LINK href="<{$web_host}>/common/admin/css/admin.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<{$web_host}>/common/libs/jquery-1.9.1.js"></script>
<script type="text/javascript" src="<{$web_host}>/common/libs/jquery-migrate-1.1.0.min.js"></script>
<script language="javascript" type="text/javascript" src="<{$web_host}>/common/libs/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
	$(function() {
		
		$("#start").focus(function(){
			
			WdatePicker({
					dateFmt:'yyyy-MM-dd',
					maxDate:'#F{$dp.$D(\'end\')||\'2099-01-01\'}'
			});
		});
		$("#end").focus(function(){
			
				WdatePicker({
					dateFmt:'yyyy-MM-dd',
					minDate:'#F{$dp.$D(\'start\')}',
					maxDate:'2099-01-01'	
				});
		});
		
		$("#form1").submit( function () {
			$("#result").val("");
			
			return true;
		} );		
	});
</script>
</head>
<style type="text/css">/* CSS Document */   
#info th {  
 border-right: 1px solid #adceff;  
 border-bottom: 1px solid #adceff;  
 border-top: 1px solid #adceff;  
 letter-spacing: 2px;  
 text-transform: uppercase;  
 text-align: left;  
 padding: 6px 6px 6px 12px;  
 background: #f4f7fc;  
}  
#info td {  
 border-right: 1px solid #adceff;  
 border-bottom: 1px solid #adceff;  
 background: #fff;  
 font-size:11px;  
 padding: 6px 6px 6px 12px;  
 
}  
#info th.spec {  
 border-left: 1px solid #adceff;  
 border-top: 0;  
 background: #fff;   
}  
</style>  
<body>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
  	<TR height=28><TD background="<{$web_host}>/common/admin/images/title_bg1.jpg">当前位置:用户反馈</TD></TR>
  	<TR><TD bgColor=#b1ceef height=1></TD></TR>
  	<TR height=20>
    	<TD background="<{$web_host}>/common/admin/images/shadow_bg.jpg"></TD>
	</TR>
</TABLE>

<div id="stat" style="margin-left:20px;">
	<form id="form1"   target="_self" name="form1" method="post" action="" >
		平台:
		<select name="platform" id="platform"> 
		<option value="0" selected="selected" >不限</option>
		
		<option value="2" >android</option>
		<option value="3" >ios</option>
		</select>
		
		&nbsp;
		时间段:<input id="start" name="start" class="Wdate" type="text"  />
		&nbsp;至&nbsp;
		<input id="end" name="end" class="Wdate" type="text"  />
		&nbsp;
		<input name="submit" type="submit" value="查询" />
		&nbsp;
	</form>
	<font color="#CC0000" id="result"><{$result|default:""}></font>
</div>
<div id="info" style=" margin-top:20px; margin-left:10px;">
		<p>
		反馈人数：<{$avg.total}> &nbsp; <br/>平均得分(界面/信息/功能)： <{$avg.fb_ui_avg}> / <{$avg.fb_info_avg}> / <{$avg.fb_fun_avg}> <br/><br/>
		</p>
		
		<{if isset($feedbackList)}>
		<table id="mytable" cellspacing="0" >  
		  <tr>  
		    <th scope="col" width="30px" style="border-left:1px solid #adceff;" >序号</th>  
		    <th scope="col" width="50px" >平台</th>
		    <th scope="col" width="50px" >版本</th>  
		    <th scope="col" width="170px" >评分(界面/信息/功能)</th>
		    <th scope="col" width="400px" >用户评价</th>
		    <th scope="col" width="150px" >评价时间</th>     
		  </tr>  
		  <{section name=fbl loop=$feedbackList.list}>
		  <tr>  
		    <td style="border-left:1px solid #adceff;" ><{$smarty.section.fbl.iteration}></td>
		    <td>
		    	<{if $feedbackList.list[fbl].fb_platform == 1}>
		    	web
		    	<{elseif $feedbackList.list[fbl].fb_platform == 2 }>
		    	android
		    	<{elseif $feedbackList.list[fbl].fb_platform == 3 }>
		    	ios
		    	<{/if}>
		    </td>
		    <td>
		    	<{$feedbackList.list[fbl].fb_version_num}>
		    </td>
		    <td>
		    	<span <{if $feedbackList.list[fbl].fb_ui < 3}>style="color:red;"<{/if}>><{$feedbackList.list[fbl].fb_ui}>分</span>/
		    	<span <{if $feedbackList.list[fbl].fb_info < 3}>style="color:red;"<{/if}>><{$feedbackList.list[fbl].fb_info}>分</span>/
		    	<span <{if $feedbackList.list[fbl].fb_fun < 3}>style="color:red;"<{/if}>><{$feedbackList.list[fbl].fb_fun}>分</span>
		    </td>
		    <td>
		    	标题：<{$feedbackList.list[fbl].fb_title}>
		    	<br/>
		    	详情：<{$feedbackList.list[fbl].fb_content}>
		    </td>
			<td>
		    	<{$feedbackList.list[fbl].fb_time}>
		    </td>
		  </tr>  
		  <{sectionelse}>
		  <tr >
		    <th class="spec" colspan="6">暂无记录</td>
		  </tr>
		  <{/section}>
		</table>  
		<br/>
		<{page info=$feedbackList web_host=$web_host web_app_url=$web_app_url url="/stat/feedback/platform/<{$platform|default:"0"}>/start/<{$start|default:"0"}>/end/<{$end|default:"0"}>"}>
		
		<{/if}>
</div>
</body>
</html>
